package com.ruoyi.mapper;

import com.ruoyi.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author Chen Lin
 * @date 2022.03.21  5:16 PM
 * @description
 */
@Mapper
public interface TaskMapper {
    public List<SubjectEntity> getSubjectList(SubjectEntity task);
    public int deleteSubjectByIds(String[] subjectIds);
    public int insertSubject(SubjectEntity task);
    public int updateSubject(SubjectEntity task);
    public List<ProjectEntity> getProjectList(ProjectEntity project);
    public int insertProject(ProjectEntity project);
    public int deleteProjectByIds(String[] projectIds);
    public int updateProject(ProjectEntity project);
    public List<FileEntity> getFileList(@Param("po") FileEntity files);
    public List<FileDataEntity> getFileData(FileDataEntity fileData);
    public List<FileDataEntity> getFileResultData(FileDataEntity fileData);

    public int deleteFileByIds(List<String> fileIds);
    public List<FileDataEntity> globalSearch(@Param("pneumaticList") List<FileDataEntity> pneumaticList);
    public List<FileEntity> getFileListByIds(@Param("fileIds") Set<String> fileIds, @Param("fileType") String fileType);
    public int updateUserSubject(@Param("userId") String userId, @Param("subjectIds") String subjectIds);
    public List<SubjectEntity> authSubjectList(@Param("userId") String  userId);
    public List<SettingEntity> getSettingsInfo(SettingEntity settings);
    public void addSetting( @Param("loginImage") String loginImage, @Param("loginTitle") String loginTitle, @Param("isActive") Integer isActive);
    public void activate( @Param("id") Integer id );
    public int removeSetting(@Param("id") Integer id);
    public SettingEntity getSetting();
}
